package com.mm.cloud.sys.dto.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 字典数据DTO
 *
 * @author mr
 * @since 2022-11-13
 */
@Data
@Schema(description = "字典数据")
public class DictItemDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "字典标签")
    @NotBlank(message = "字典标签不能为空")
    private String dictItemLabel;

    @Schema(description = "字典值")
    @NotBlank(message = "字典值不能为空")
    private String dictItemValue;

    @Schema(description = "字典类型ID")
    @NotNull(message = "字典类型ID不能为空")
    private Long dictTypeId;

    @Schema(description = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;
}
